import React from 'react';
import {Route, Switch} from 'dva/router';
import Index from '../../routes/index';
import OldMan from '../../routes/oldman';
import Personal from '../../routes/personal';
import Service from '../../routes/service';
import Visit from '../../routes/visit';
import Manage from '../../routes/manage';
import Record from '../../routes/record';
import Role from '../../routes/role';

export default class Center extends React.Component {
    render() {
        return (
					<Switch>
						<Route path={'/index'} component={Index}/>
						<Route path={'/oldMan'} component={OldMan}/>
						<Route path={'/personal'} component={Personal}/>
						<Route path={'/service'} component={Service}/>
						<Route path={'/visit'} component={Visit}/>
						<Route path={'/manage'} component={Manage}/>
						<Route path={'/record'} component={Record}/>
						<Route path={'/role'} component={Role}/>
					</Switch>
        );
    }
}